<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Jamming: graph::explorer&lt; T, container &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Jamming
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   <div id="projectbrief">An data structure and algorithm template library for quick C++ programming</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>graph</b>      </li>
      <li class="navelem"><a class="el" href="classgraph_1_1explorer.html">explorer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">graph::explorer&lt; T, container &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="graph::explorer" -->
<p><a href="classgraph_1_1explorer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgraph_1_1explorer_1_1path__iterator.html">path_iterator</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7aa72bb3369f1a0dcbef6958d048e21d"></a><!-- doxytag: member="graph::explorer::explorer" ref="a7aa72bb3369f1a0dcbef6958d048e21d" args="(container &amp;c)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>explorer</b> (container &amp;c)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class _Vertex_found_func , class _Edge_check_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgraph_1_1explorer.html#aa967169a22798c9745c098d542f22c25">bfs_until</a> (int s, _Vertex_found_func found, _Edge_check_func edge_check)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ad0e4d8d084a0a38c5da98c6c97177ab9"></a><!-- doxytag: member="graph::explorer::bfs_until" ref="ad0e4d8d084a0a38c5da98c6c97177ab9" args="(int s, const _Vertex_found_func &amp;found)" -->
template&lt;class _Vertex_found_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>bfs_until</b> (int s, const _Vertex_found_func &amp;found)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7714aed65b338a064e75e1f0f15dcff6"></a><!-- doxytag: member="graph::explorer::bfs" ref="a7714aed65b338a064e75e1f0f15dcff6" args="(int s, int t=&#45;1)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>bfs</b> (int s, int t=-1)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a5293572f31cbf7790caefb8cb08b8563"></a><!-- doxytag: member="graph::explorer::dfs_until" ref="a5293572f31cbf7790caefb8cb08b8563" args="(int s, _Vertex_found_func found, _Edge_check_func edge_check)" -->
template&lt;class _Vertex_found_func , class _Edge_check_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>dfs_until</b> (int s, _Vertex_found_func found, _Edge_check_func edge_check)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="af30ed16cfb195fea18059a963bb2bd52"></a><!-- doxytag: member="graph::explorer::dfs_until" ref="af30ed16cfb195fea18059a963bb2bd52" args="(int s, const _Vertex_found_func &amp;found)" -->
template&lt;class _Vertex_found_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>dfs_until</b> (int s, const _Vertex_found_func &amp;found)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4230923c1fd59383469805424634e0bb"></a><!-- doxytag: member="graph::explorer::dfs" ref="a4230923c1fd59383469805424634e0bb" args="(int s, int t=&#45;1)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>dfs</b> (int s, int t=-1)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class _Vertex_found_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgraph_1_1explorer.html#afa222404714e24e17ccf7e1edd5898c0">dijkstra_until</a> (int s, _Vertex_found_func found)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a186a152a77a7ebc24c60307f0909d4c1"></a><!-- doxytag: member="graph::explorer::dijkstra" ref="a186a152a77a7ebc24c60307f0909d4c1" args="(int s, int t=&#45;1)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>dijkstra</b> (int s, int t=-1)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class _Vertex_found_func &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgraph_1_1explorer.html#aac330e1714dc9b43b96bfbec6fa6a696">spfa_until</a> (int s, _Vertex_found_func found)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb877da7aaa550cd48b040ff28e8ebc9"></a><!-- doxytag: member="graph::explorer::spfa" ref="acb877da7aaa550cd48b040ff28e8ebc9" args="(int s, int t=&#45;1)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>spfa</b> (int s, int t=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgraph_1_1explorer.html#a0ccb2c39e19b5dc568ea046bd207f588">flyod</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60dcc04aecdc21b603bede22c9a81d61"></a><!-- doxytag: member="graph::explorer::distance" ref="a60dcc04aecdc21b603bede22c9a81d61" args="(int s, int t)" -->
T&#160;</td><td class="memItemRight" valign="bottom"><b>distance</b> (int s, int t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9c5af4edbf5770134ba3b306bbe68d5"></a><!-- doxytag: member="graph::explorer::clear" ref="aa9c5af4edbf5770134ba3b306bbe68d5" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b415e9cac3b0c66b0d933d8d0b8cf7b"></a><!-- doxytag: member="graph::explorer::path_begin" ref="a8b415e9cac3b0c66b0d933d8d0b8cf7b" args="(int s, int t=&#45;1)" -->
<a class="el" href="classgraph_1_1explorer_1_1path__iterator.html">path_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>path_begin</b> (int s, int t=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8deaef54118ef04c4d5ed60bef831741"></a><!-- doxytag: member="graph::explorer::path_end" ref="a8deaef54118ef04c4d5ed60bef831741" args="(int s, int t=&#45;1)" -->
<a class="el" href="classgraph_1_1explorer_1_1path__iterator.html">path_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>path_end</b> (int s, int t=-1)</td></tr>
</table>
<h3>template&lt;class T, class container = class adjacent_graph&lt;T&gt;&gt;<br/>
 class graph::explorer&lt; T, container &gt;</h3>

<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa967169a22798c9745c098d542f22c25"></a><!-- doxytag: member="graph::explorer::bfs_until" ref="aa967169a22798c9745c098d542f22c25" args="(int s, _Vertex_found_func found, _Edge_check_func edge_check)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, class container = class adjacent_graph&lt;T&gt;&gt; </div>
<div class="memtemplate">
template&lt;class _Vertex_found_func , class _Edge_check_func &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classgraph_1_1explorer.html">graph::explorer</a>&lt; T, container &gt;::<a class="el" href="classgraph_1_1explorer.html#aa967169a22798c9745c098d542f22c25">bfs_until</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Vertex_found_func&#160;</td>
          <td class="paramname"><em>found</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Edge_check_func&#160;</td>
          <td class="paramname"><em>edge_check</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>bfs walker </p>

</div>
</div>
<a class="anchor" id="afa222404714e24e17ccf7e1edd5898c0"></a><!-- doxytag: member="graph::explorer::dijkstra_until" ref="afa222404714e24e17ccf7e1edd5898c0" args="(int s, _Vertex_found_func found)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, class container = class adjacent_graph&lt;T&gt;&gt; </div>
<div class="memtemplate">
template&lt;class _Vertex_found_func &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classgraph_1_1explorer.html">graph::explorer</a>&lt; T, container &gt;::<a class="el" href="classgraph_1_1explorer.html#afa222404714e24e17ccf7e1edd5898c0">dijkstra_until</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Vertex_found_func&#160;</td>
          <td class="paramname"><em>found</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>dijkstra algorithm, find the shortest distance between source and destiny. </p>

</div>
</div>
<a class="anchor" id="a0ccb2c39e19b5dc568ea046bd207f588"></a><!-- doxytag: member="graph::explorer::flyod" ref="a0ccb2c39e19b5dc568ea046bd207f588" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, class container = class adjacent_graph&lt;T&gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classgraph_1_1explorer.html">graph::explorer</a>&lt; T, container &gt;::<a class="el" href="classgraph_1_1explorer.html#a0ccb2c39e19b5dc568ea046bd207f588">flyod</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>flyod algorithm, find the shortest distance between every vertex pairs. </p>

</div>
</div>
<a class="anchor" id="aac330e1714dc9b43b96bfbec6fa6a696"></a><!-- doxytag: member="graph::explorer::spfa_until" ref="aac330e1714dc9b43b96bfbec6fa6a696" args="(int s, _Vertex_found_func found)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T, class container = class adjacent_graph&lt;T&gt;&gt; </div>
<div class="memtemplate">
template&lt;class _Vertex_found_func &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classgraph_1_1explorer.html">graph::explorer</a>&lt; T, container &gt;::<a class="el" href="classgraph_1_1explorer.html#aac330e1714dc9b43b96bfbec6fa6a696">spfa_until</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Vertex_found_func&#160;</td>
          <td class="paramname"><em>found</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>SPFA algorithm. A modification of bellman algorithm. Allows negative edge. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>graph/<a class="el" href="graph_8h_source.html">graph.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Jan 26 2013 22:18:27 for Jamming by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
